<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=latin1">
        <link rel="stylesheet" type="text/css" href="../padrao.css" />
        <link rel="stylesheet" href="../jQuery/lista.css" type="text/css" media="all" />
        <script type="text/javascript" src="../jQuery/jquery-1.2.1.pack.js"></script>
        <script type="text/javascript" src="../jQuery/busca.js"></script>

        <title> View Empresas </title>

        <?php
        ob_start();
        session_start();
        $default_area = "Escritorio";
        //$default_area = "Portaria";
        $_SESSION[default_area] = $default_area;
        include '../infobox.php';
        include '../verifica_usuario.php';
        include '../functions.php';
        include '../functions_office.php';
        include '../menu.php';
        ?>

    </head>
    <body>
        <div class="conteudo">


            <?php
            $func_login = $_GET[funcionario_selecionado];
            $_SESSION[funcionario_selecionado] = $func_login;
            getFuncionario_info($func_login);
            if ($_SESSION[vis_funcionario] == 1) {
                if ($_SESSION[alt_funcionario] == 1) {
                    echo "<form method='POST' action='altera_funcionario.php'>";
                    echo "  <input value='Alterar' type='submit' name='opt'>";
                    echo "</form>";
                }

                echo "<table align='center'> ";
                echo "<tr>";
                echo "<td>  Login </td>";
                echo "<td> $_SESSION[funcionario_selecionado] </td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td> Nome: </td>";
                echo "<td> $_SESSION[func_nome] </td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td> Cargo: </td>";
                echo "<td> $_SESSION[func_cargo] </td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td> Area: </td>";
                echo "<td> $_SESSION[func_area] </td>";
                echo "</tr>";
                echo "</table>";
            }
            ?>
        </div>
    </body>
</html>


